﻿#include "CmdSetHeatMapSecondVariableAxisChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapSecondVariableAxisChanged::CmdSetHeatMapSecondVariableAxisChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapSecondVariableAxisChanged::~CmdSetHeatMapSecondVariableAxisChanged()
    {
    }

    bool CmdSetHeatMapSecondVariableAxisChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapSecondVariableAxisChanged(m_windowId, m_variableAxisIndex);
        return true;
    }

    void CmdSetHeatMapSecondVariableAxisChanged::undo()
    {
    }

    void CmdSetHeatMapSecondVariableAxisChanged::redo()
    {
        // execute();
    }

    void CmdSetHeatMapSecondVariableAxisChanged::setHeatMapVariableAxisChanged(int windowId, int variableAxisIndex)
    {
        m_windowId = windowId;
        m_variableAxisIndex = variableAxisIndex;
    }

} // namespace PostCommand
